package com.labot.dao;

import com.labot.model.Auto;

import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * User Data Access Object (GenericDao) interface.
 *
 * @author <a href="mailto:matt@raibledesigns.com">Matt Raible</a>
 */
public interface AutoDao extends GenericDao<Auto, Long> {

    
    @Transactional
  
    Auto saveAuto(Auto auto);
    
    Auto buscarAuto(Long id);
   
    Auto loadAuto(Long id);
	Auto buscarAutoPorPatente(String patente) throws Exception;
    
}
